(function($, exports) {
    let Utils={
    };
    let View={};
    let Mode={};
    let Control = {
        init: function () {
            let _c=Control;
            _c.bind();
        },
        login:function(){
            let password=$("#password").val();
            let username=$("#username").val();
            let data={"userName":username,"pwd":password};
            $.ajax({
                url:"/login",
                type:"POST",
                data:JSON.stringify(data),
                contentType:"charset=utf-8",
                success:function(data){
                    alert("request success ! ");
                }
            });
        },
        bind:function(){
            let _c = Control;
            $("#submit").click(function () {
               _c.login();
            });
        }
    };

    $(document).ready(Control.init);
})(jQuery, window)